﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL.UserGroup
{
	/// <summary>
	/// 用户组实体类
	/// </summary>
	/// <![CDATA[2014-7-30 11:31:27]]>
	public class Entity : EntityBase
	{
		#region 属性
		public string strUserGroupName = "";		// 用户组名称
		public string strColumnIDs = "";		// 用户组有权访问的栏目ID
		public string strWebColumnIDs = "";		// 用户组有权访问的前台栏目ID
		public int nQueryRight = 0;		// 查询权限，分为全部能查询，只能查询本账号的和查询本单位的

		private string strColumnNames = "";		// 用户组有权访问的栏目名称
		private string strWebColumnNames = "";		// 用户组有权访问的前台栏目名称

		private Config clsConfig = new Config();
		#endregion 属性

		#region Get、Set属性
		/// <summary>
		/// 用户组名称
		/// </summary>
		/// <![CDATA[2014-7-30 11:33:25]]>
		public string UserGroupName
		{
			get { return strUserGroupName; }
			set { strUserGroupName = value.Trim(); }
		}
		/// <summary>
		/// 用户组有权访问的栏目ID
		/// </summary>
		/// <![CDATA[2014-7-30 11:34:01]]>
		public string ColumnIDs
		{
			get { return strColumnIDs; }
			set { strColumnIDs = value.Trim(); }
		}
		/// <summary>
		/// 用户组有权访问的栏目名称
		/// </summary>
		/// <![CDATA[2014-8-10 10:52:27]]>
		public string ColumnNames
		{
			get { return strColumnNames; }
			set { strColumnNames = value.Trim(); }
		}
		/// <summary>
		/// 用户组有权访问的前台栏目ID
		/// </summary>
		/// <![CDATA[2014-8-13 17:01:37]]>
		public string WebColumnIDs
		{
			get { return strWebColumnIDs; }
			set { strWebColumnIDs = value.Trim(); }
		}
		/// <summary>
		/// 用户组有权访问的前台栏目名称
		/// </summary>
		/// <![CDATA[2014-8-14 08:44:04]]>
		public string WebColumnNames
		{
			get { return strWebColumnNames; }
			set { strWebColumnNames = value.Trim(); }
		}
		/// <summary>
		/// 查询权限
		/// </summary>
		public int QueryRight
		{
			get { return nQueryRight; }
			set { nQueryRight = value; }
		}
		/// <summary>
		/// 查询权限名称
		/// </summary>
		public string QueryRightName
		{
			get
			{
				return clsConfig.strArrQueryRight[nQueryRight];
			}
		}
		#endregion Get、Set属性

		#region 构造函数
		/// <summary>
		/// 用户组实体类构造函数
		/// </summary>
		/// <![CDATA[2014-7-30 11:31:27]]>
		public Entity()
			: base()
		{
		}
		#endregion 构造函数
	}
}
